/**
 * <p>Copyright (c) 2016 深圳市鹏途交通科技有限公司</p>
 * <p>					All right reserved. 		 </p>
 * <p>项目名称 ： 	深圳公路信息资源整合及国省检日常化监管管理项目        </p>
 * <p>创建者   :	wy
 * <p>描   述  :  A7-06-规范管理 </p>
 * <p>最后修改 :  $: 2017-5-26-下午3:16:11	wy   $     </p>
 * 
 */

package com.pengtu.gsj.entity.gcjs;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.pengtu.gsj.entity.app.Attachment;
import com.pengtu.gsj.entity.base.IdEntity;

@Entity
@Table(name = "T_PFB_STANDARDMANAGEMENT")
public class StandardManagement extends IdEntity {

	private static final long serialVersionUID = -6333539572144695063L;
	private String location; //地方(区县)
	private String itemName; //工程项目
	private String planing; //计划   
	private String design; //设计审查    
	private String bidding; //招投标   
	private String projectQuality; //工程质量监督     
	private String workReport; //交竣工报告齐全     
	private String acceptanceStandard; //质量符合工程验收标准
	private String changeRule; //工程变更台账齐全,造假变更管理合规
	private String remark; //备注
	private String testYear; //年份
	
	private Double projectMark;		//项目得分
	
	private Integer bulletinNumber;     //检测文件数
	private List<Attachment> attachments;

	
	public StandardManagement() {
	}
	
	public  StandardManagement(String itemName){
		this.itemName = itemName;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Column(name = "LOCATION")
	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	@Column(name = "ITEMNAME")
	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	
	@Column(name = "PLANING")
	public String getPlaning() {
		return planing;
	}

	public void setPlaning(String planing) {
		this.planing = planing;
	}

	
	@Column(name = "DESIGN")
	public String getDesign() {
		return design;
	}

	public void setDesign(String design) {
		this.design = design;
	}

	@Column(name = "BIDDING")
	public String getBidding() {
		return bidding;
	}

	public void setBidding(String bidding) {
		this.bidding = bidding;
	}

	@Column(name = "TESTYEAR")
	public String getTestYear() {
		return testYear;
	}

	public void setTestYear(String testYear) {
		this.testYear = testYear;
	}
	
	@Column(name = "PROJECTQUALITY")
	public String getProjectQuality() {
		return projectQuality;
	}

	public void setProjectQuality(String projectQuality) {
		this.projectQuality = projectQuality;
	}

	@Column(name = "WORKREPORT")
	public String getWorkReport() {
		return workReport;
	}

	public void setWorkReport(String workReport) {
		this.workReport = workReport;
	}

	@Column(name = "ACCEPTANCESTANDARD")
	public String getAcceptanceStandard() {
		return acceptanceStandard;
	}

	public void setAcceptanceStandard(String acceptanceStandard) {
		this.acceptanceStandard = acceptanceStandard;
	}

	@Column(name = "CHANGERULE")
	public String getChangeRule() {
		return changeRule;
	}

	public void setChangeRule(String changeRule) {
		this.changeRule = changeRule;
	}
	
	@Transient
	public Integer getBulletinNumber() {
		bulletinNumber = attachments.size();
		return bulletinNumber;
	}

	public void setBulletinNumber(Integer bulletinNumber) {
		this.bulletinNumber = bulletinNumber;
	}

	@OneToMany(fetch = FetchType.LAZY)
	@JoinColumn(name = "PARTID")
	public List<Attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}
	
	@Transient
	public Double getProjectMark() {
		return projectMark;
	}

	public void setProjectMark(Double projectMark) {
		this.projectMark = projectMark;
	}
	
	
}
